# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=lfi-exploiter
pkgver=1.1
pkgrel=7
groups=('blackarch' 'blackarch-webapp' 'blackarch-exploitation')
pkgdesc='This perl script leverages /proc/self/environ to attempt getting code execution out of a local file inclusion vulnerability..'
arch=('any')
url='http://packetstormsecurity.com/files/124332/LFI-Exploiter-1.1.html'
license=('GPL3')
depends=('perl' 'perl-libwww')
source=("https://dl.packetstormsecurity.net/UNIX/utilities/$pkgname-$pkgver.tar.gz")
sha512sums=('1db23ef108d7af03a8b2b81bb64e06a9292630e64d3c6f145f7e0043e1b233a3e4cc13dba62dbff0f0c300e63ffdc3826c7d2a944dfb5963b2ba806dae394a9f')

package() {
  cd "lfi exploiter"

  install -Dm 755 lfi.pl "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.txt
  install -Dm 644 COPYING.GPL "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

